local Lua__eba = fk.CreateSkill {
    name = "Lua__eba",
    tags = { Skill.Compulsory },
  }
  
  Fk:loadTranslationTable{
    ["Lua__eba"] = "恶霸",
    [":Lua__eba"] = "锁定技，所有角色不能使用本回合除摸牌阶段获取以外的牌",
  
    ["@@Lua__eba-inhand-turn"] = "恶霸",
  

  }
  
  Lua__eba:addEffect(fk.AfterCardsMove, {
    can_trigger = function(self, event, target, player, data)
      if player:hasSkill(Lua__eba.name) then
        local room = player.room
        local toMarked = {}
        for _, move in ipairs(data) do
          if move.to ~= nil and move.to.phase ~= Player.Draw and move.toArea == Card.PlayerHand then
            for _, info in ipairs(move.moveInfo) do
              if table.contains(move.to:getCardIds("h"), info.cardId) then
                table.insert(toMarked, info.cardId)
              end
            end
          end
        end
        if #toMarked > 0 then
          event:setCostData(self, {extra_data = {toMarked}})
          return true
        end
      end
    end,
    on_use = function(self, event, target, player, data)
      local room = player.room
      local toMarked = table.simpleClone(event:getCostData(self).extra_data[1])
      for _, id in ipairs(toMarked) do
        room:setCardMark(Fk:getCardById(id), "@@Lua__eba-inhand-turn", 1)
      end
    end,
  })
  
  
Lua__eba:addEffect("prohibit", {
    prohibit_use = function(self, player, card)
        return card:getMark("@@Lua__eba-inhand-turn") == 1
    end,
})
  
  return Lua__eba
  